home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIURI.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  19KB  |  500 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIURI.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIURI_h__
  6. #define __gen_nsIURI_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #undef GetPort  // XXX Windows!
  18. #undef SetPort  // XXX Windows!
  19.  
  20. /* starting interface:    nsIURI */
  21. #define NS_IURI_IID_STR "07a22cc0-0ce5-11d3-9331-00104ba0fd40"
  22.  
  23. #define NS_IURI_IID \
  24.   {0x07a22cc0, 0x0ce5, 0x11d3, \
  25.     { 0x93, 0x31, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}
  26.  
  27. /**
  28.  * URIs are essentially structured names for things -- anything. This interface
  29.  * provides accessors to set and query the most basic components of an URI.
  30.  * Subclasses, including nsIURL, impose greater structure on the URI.
  31.  *
  32.  * This interface follows Tim Berners-Lee's URI spec (RFC2396) [1], where the
  33.  * basic URI components are defined as such:
  34.  *  
  35.  *      ftp://username:password@hostname:portnumber/pathname
  36.  *      \ /   \               / \      / \        /\       /
  37.  *       -     ---------------   ------   --------  -------
  38.  *       |            |             |        |         |
  39.  *       |            |             |        |        Path
  40.  *       |            |             |       Port         
  41.  *       |            |            Host      /
  42.  *       |         UserPass                 /
  43.  *     Scheme                              /
  44.  *       \                                /
  45.  *        --------------------------------
  46.  *                       |
  47.  *                    PrePath
  48.  *
  49.  * The definition of the URI components has been extended to allow for
  50.  * internationalized domain names [2] and the more generic IRI structure [3].
  51.  *
  52.  * [1] http://www.ietf.org/rfc/rfc2396.txt
  53.  * [2] http://www.ietf.org/internet-drafts/draft-ietf-idn-idna-06.txt
  54.  * [3] http://www.ietf.org/internet-drafts/draft-masinter-url-i18n-08.txt
  55.  */
  56. /**
  57.  * nsIURI - interface for an uniform resource identifier w/ i18n support.
  58.  *
  59.  * AUTF8String attributes may contain unescaped UTF-8 characters.
  60.  * Consumers should be careful to escape the UTF-8 strings as necessary, but
  61.  * should always try to "display" the UTF-8 version as provided by this
  62.  * interface.
  63.  *
  64.  * AUTF8String attributes may also contain escaped characters.
  65.  * 
  66.  * Unescaping URI segments is unadvised unless there is intimate
  67.  * knowledge of the underlying charset or there is no plan to display (or
  68.  * otherwise enforce a charset on) the resulting URI substring.
  69.  * 
  70.  * @status FROZEN
  71.  */
  72. class NS_NO_VTABLE nsIURI : public nsISupports {
  73.  public: 
  74.  
  75.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IURI_IID)
  76.  
  77.   /************************************************************************
  78.      * The URI is broken down into the following principal components:
  79.      */
  80. /**
  81.      * Returns a string representation of the URI. Setting the spec causes
  82.      * the new spec to be parsed, initializing the URI.
  83.      *
  84.      * Some characters may be escaped.
  85.      */
  86.   /* attribute AUTF8String spec; */
  87.   NS_IMETHOD GetSpec(nsACString & aSpec) = 0;
  88.   NS_IMETHOD SetSpec(const nsACString & aSpec) = 0;
  89.  
  90.   /**
  91.      * The prePath (eg. scheme://user:password@host:port) returns the string
  92.      * before the path.  This is useful for authentication or managing sessions.
  93.      *
  94.      * Some characters may be escaped.
  95.      */
  96.   /* readonly attribute AUTF8String prePath; */
  97.   NS_IMETHOD GetPrePath(nsACString & aPrePath) = 0;
  98.  
  99.   /**
  100.      * The Scheme is the protocol to which this URI refers.  The scheme is
  101.      * restricted to the US-ASCII charset per RFC2396.
  102.      */
  103.   /* attribute ACString scheme; */
  104.   NS_IMETHOD GetScheme(nsACString & aScheme) = 0;
  105.   NS_IMETHOD SetScheme(const nsACString & aScheme) = 0;
  106.  
  107.   /**
  108.      * The username:password (or username only if value doesn't contain a ':')
  109.      *
  110.      * Some characters may be escaped.
  111.      */
  112.   /* attribute AUTF8String userPass; */
  113.   NS_IMETHOD GetUserPass(nsACString & aUserPass) = 0;
  114.   NS_IMETHOD SetUserPass(const nsACString & aUserPass) = 0;
  115.  
  116.   /**
  117.      * The optional username and password, assuming the preHost consists of
  118.      * username:password.
  119.      *
  120.      * Some characters may be escaped.
  121.      */
  122.   /* attribute AUTF8String username; */
  123.   NS_IMETHOD GetUsername(nsACString & aUsername) = 0;
  124.   NS_IMETHOD SetUsername(const nsACString & aUsername) = 0;
  125.  
  126.   /* attribute AUTF8String password; */
  127.   NS_IMETHOD GetPassword(nsACString & aPassword) = 0;
  128.   NS_IMETHOD SetPassword(const nsACString & aPassword) = 0;
  129.  
  130.   /**
  131.      * The host:port (or simply the host, if port == -1).
  132.      *
  133.      * Characters are NOT escaped.
  134.      */
  135.   /* attribute AUTF8String hostPort; */
  136.   NS_IMETHOD GetHostPort(nsACString & aHostPort) = 0;
  137.   NS_IMETHOD SetHostPort(const nsACString & aHostPort) = 0;
  138.  
  139.   /**
  140.      * The host is the internet domain name to which this URI refers.  It could
  141.      * be an IPv4 (or IPv6) address literal.  If supported, it could be a
  142.      * non-ASCII internationalized domain name.
  143.      *
  144.      * Characters are NOT escaped.
  145.      */
  146.   /* attribute AUTF8String host; */
  147.   NS_IMETHOD GetHost(nsACString & aHost) = 0;
  148.   NS_IMETHOD SetHost(const nsACString & aHost) = 0;
  149.  
  150.   /**
  151.      * A port value of -1 corresponds to the protocol's default port (eg. -1
  152.      * implies port 80 for http URIs).
  153.      */
  154.   /* attribute long port; */
  155.   NS_IMETHOD GetPort(PRInt32 *aPort) = 0;
  156.   NS_IMETHOD SetPort(PRInt32 aPort) = 0;
  157.  
  158.   /**
  159.      * The path, typically including at least a leading '/' (but may also be
  160.      * empty, depending on the protocol).
  161.      *
  162.      * Some characters may be escaped.
  163.      */
  164.   /* attribute AUTF8String path; */
  165.   NS_IMETHOD GetPath(nsACString & aPath) = 0;
  166.   NS_IMETHOD SetPath(const nsACString & aPath) = 0;
  167.  
  168.   /************************************************************************
  169.      * An URI supports the following methods:
  170.      */
  171. /**
  172.      * URI equivalence test (not a strict string comparison).
  173.      *
  174.      * eg. http://foo.com:80/ == http://foo.com/
  175.      */
  176.   /* boolean equals (in nsIURI other); */
  177.   NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) = 0;
  178.  
  179.   /**
  180.      * An optimization to do scheme checks without requiring the users of nsIURI
  181.      * to GetScheme, thereby saving extra allocating and freeing. Returns true if
  182.      * the schemes match (case ignored).
  183.      */
  184.   /* boolean schemeIs (in string scheme); */
  185.   NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) = 0;
  186.  
  187.   /**
  188.      * Clones the current URI.  For some protocols, this is more than just an
  189.      * optimization.  For example, under MacOS, the spec of a file URL does not
  190.      * necessarily uniquely identify a file since two volumes could share the
  191.      * same name.
  192.      */
  193.   /* nsIURI clone (); */
  194.   NS_IMETHOD Clone(nsIURI **_retval) = 0;
  195.  
  196.   /**
  197.      * This method resolves a relative string into an absolute URI string,
  198.      * using this URI as the base. 
  199.      *
  200.      * NOTE: some implementations may have no concept of a relative URI.
  201.      */
  202.   /* AUTF8String resolve (in AUTF8String relativePath); */
  203.   NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) = 0;
  204.  
  205.   /************************************************************************
  206.      * Additional attributes:
  207.      */
  208. /**
  209.      * The URI spec with an ASCII compatible encoding.  Host portion follows
  210.      * the IDNA draft spec.  Other parts are URL-escaped per the rules of
  211.      * RFC2396.  The result is strictly ASCII.
  212.      */
  213.   /* readonly attribute ACString asciiSpec; */
  214.   NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) = 0;
  215.  
  216.   /**
  217.      * The URI host with an ASCII compatible encoding.  Follows the IDNA
  218.      * draft spec for converting internationalized domain names (UTF-8) to
  219.      * ASCII for compatibility with existing internet infrasture.
  220.      */
  221.   /* readonly attribute ACString asciiHost; */
  222.   NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) = 0;
  223.  
  224.   /**
  225.      * The charset of the document from which this URI originated.  An empty
  226.      * value implies UTF-8.
  227.      *
  228.      * If this value is something other than UTF-8 then the URI components
  229.      * (e.g., spec, prePath, username, etc.) will all be fully URL-escaped.
  230.      * Otherwise, the URI components may contain unescaped multibyte UTF-8
  231.      * characters.
  232.      */
  233.   /* readonly attribute ACString originCharset; */
  234.   NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) = 0;
  235.  
  236. };
  237.  
  238. /* Use this macro when declaring classes that implement this interface. */
  239. #define NS_DECL_NSIURI \
  240.   NS_IMETHOD GetSpec(nsACString & aSpec); \
  241.   NS_IMETHOD SetSpec(const nsACString & aSpec); \
  242.   NS_IMETHOD GetPrePath(nsACString & aPrePath); \
  243.   NS_IMETHOD GetScheme(nsACString & aScheme); \
  244.   NS_IMETHOD SetScheme(const nsACString & aScheme); \
  245.   NS_IMETHOD GetUserPass(nsACString & aUserPass); \
  246.   NS_IMETHOD SetUserPass(const nsACString & aUserPass); \
  247.   NS_IMETHOD GetUsername(nsACString & aUsername); \
  248.   NS_IMETHOD SetUsername(const nsACString & aUsername); \
  249.   NS_IMETHOD GetPassword(nsACString & aPassword); \
  250.   NS_IMETHOD SetPassword(const nsACString & aPassword); \
  251.   NS_IMETHOD GetHostPort(nsACString & aHostPort); \
  252.   NS_IMETHOD SetHostPort(const nsACString & aHostPort); \
  253.   NS_IMETHOD GetHost(nsACString & aHost); \
  254.   NS_IMETHOD SetHost(const nsACString & aHost); \
  255.   NS_IMETHOD GetPort(PRInt32 *aPort); \
  256.   NS_IMETHOD SetPort(PRInt32 aPort); \
  257.   NS_IMETHOD GetPath(nsACString & aPath); \
  258.   NS_IMETHOD SetPath(const nsACString & aPath); \
  259.   NS_IMETHOD Equals(nsIURI *other, PRBool *_retval); \
  260.   NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval); \
  261.   NS_IMETHOD Clone(nsIURI **_retval); \
  262.   NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval); \
  263.   NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec); \
  264.   NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost); \
  265.   NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset); 
  266.  
  267. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  268. #define NS_FORWARD_NSIURI(_to) \
  269.   NS_IMETHOD GetSpec(nsACString & aSpec) { return _to GetSpec(aSpec); } \
  270.   NS_IMETHOD SetSpec(const nsACString & aSpec) { return _to SetSpec(aSpec); } \
  271.   NS_IMETHOD GetPrePath(nsACString & aPrePath) { return _to GetPrePath(aPrePath); } \
  272.   NS_IMETHOD GetScheme(nsACString & aScheme) { return _to GetScheme(aScheme); } \
  273.   NS_IMETHOD SetScheme(const nsACString & aScheme) { return _to SetScheme(aScheme); } \
  274.   NS_IMETHOD GetUserPass(nsACString & aUserPass) { return _to GetUserPass(aUserPass); } \
  275.   NS_IMETHOD SetUserPass(const nsACString & aUserPass) { return _to SetUserPass(aUserPass); } \
  276.   NS_IMETHOD GetUsername(nsACString & aUsername) { return _to GetUsername(aUsername); } \
  277.   NS_IMETHOD SetUsername(const nsACString & aUsername) { return _to SetUsername(aUsername); } \
  278.   NS_IMETHOD GetPassword(nsACString & aPassword) { return _to GetPassword(aPassword); } \
  279.   NS_IMETHOD SetPassword(const nsACString & aPassword) { return _to SetPassword(aPassword); } \
  280.   NS_IMETHOD GetHostPort(nsACString & aHostPort) { return _to GetHostPort(aHostPort); } \
  281.   NS_IMETHOD SetHostPort(const nsACString & aHostPort) { return _to SetHostPort(aHostPort); } \
  282.   NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
  283.   NS_IMETHOD SetHost(const nsACString & aHost) { return _to SetHost(aHost); } \
  284.   NS_IMETHOD GetPort(PRInt32 *aPort) { return _to GetPort(aPort); } \
  285.   NS_IMETHOD SetPort(PRInt32 aPort) { return _to SetPort(aPort); } \
  286.   NS_IMETHOD GetPath(nsACString & aPath) { return _to GetPath(aPath); } \
  287.   NS_IMETHOD SetPath(const nsACString & aPath) { return _to SetPath(aPath); } \
  288.   NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) { return _to Equals(other, _retval); } \
  289.   NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) { return _to SchemeIs(scheme, _retval); } \
  290.   NS_IMETHOD Clone(nsIURI **_retval) { return _to Clone(_retval); } \
  291.   NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) { return _to Resolve(relativePath, _retval); } \
  292.   NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) { return _to GetAsciiSpec(aAsciiSpec); } \
  293.   NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) { return _to GetAsciiHost(aAsciiHost); } \
  294.   NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) { return _to GetOriginCharset(aOriginCharset); } 
  295.  
  296. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  297. #define NS_FORWARD_SAFE_NSIURI(_to) \
  298.   NS_IMETHOD GetSpec(nsACString & aSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpec(aSpec); } \
  299.   NS_IMETHOD SetSpec(const nsACString & aSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSpec(aSpec); } \
  300.   NS_IMETHOD GetPrePath(nsACString & aPrePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrePath(aPrePath); } \
  301.   NS_IMETHOD GetScheme(nsACString & aScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScheme(aScheme); } \
  302.   NS_IMETHOD SetScheme(const nsACString & aScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScheme(aScheme); } \
  303.   NS_IMETHOD GetUserPass(nsACString & aUserPass) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserPass(aUserPass); } \
  304.   NS_IMETHOD SetUserPass(const nsACString & aUserPass) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserPass(aUserPass); } \
  305.   NS_IMETHOD GetUsername(nsACString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
  306.   NS_IMETHOD SetUsername(const nsACString & aUsername) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUsername(aUsername); } \
  307.   NS_IMETHOD GetPassword(nsACString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
  308.   NS_IMETHOD SetPassword(const nsACString & aPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPassword(aPassword); } \
  309.   NS_IMETHOD GetHostPort(nsACString & aHostPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostPort(aHostPort); } \
  310.   NS_IMETHOD SetHostPort(const nsACString & aHostPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHostPort(aHostPort); } \
  311.   NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
  312.   NS_IMETHOD SetHost(const nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHost(aHost); } \
  313.   NS_IMETHOD GetPort(PRInt32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
  314.   NS_IMETHOD SetPort(PRInt32 aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPort(aPort); } \
  315.   NS_IMETHOD GetPath(nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
  316.   NS_IMETHOD SetPath(const nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPath(aPath); } \
  317.   NS_IMETHOD Equals(nsIURI *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \
  318.   NS_IMETHOD SchemeIs(const char *scheme, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SchemeIs(scheme, _retval); } \
  319.   NS_IMETHOD Clone(nsIURI **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  320.   NS_IMETHOD Resolve(const nsACString & relativePath, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(relativePath, _retval); } \
  321.   NS_IMETHOD GetAsciiSpec(nsACString & aAsciiSpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsciiSpec(aAsciiSpec); } \
  322.   NS_IMETHOD GetAsciiHost(nsACString & aAsciiHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsciiHost(aAsciiHost); } \
  323.   NS_IMETHOD GetOriginCharset(nsACString & aOriginCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginCharset(aOriginCharset); } 
  324.  
  325. #if 0
  326. /* Use the code below as a template for the implementation class for this interface. */
  327.  
  328. /* Header file */
  329. class nsURI : public nsIURI
  330. {
  331. public:
  332.   NS_DECL_ISUPPORTS
  333.   NS_DECL_NSIURI
  334.  
  335.   nsURI();
  336.  
  337. private:
  338.   ~nsURI();
  339.  
  340. protected:
  341.   /* additional members */
  342. };
  343.  
  344. /* Implementation file */
  345. NS_IMPL_ISUPPORTS1(nsURI, nsIURI)
  346.  
  347. nsURI::nsURI()
  348. {
  349.   /* member initializers and constructor code */
  350. }
  351.  
  352. nsURI::~nsURI()
  353. {
  354.   /* destructor code */
  355. }
  356.  
  357. /* attribute AUTF8String spec; */
  358. NS_IMETHODIMP nsURI::GetSpec(nsACString & aSpec)
  359. {
  360.     return NS_ERROR_NOT_IMPLEMENTED;
  361. }
  362. NS_IMETHODIMP nsURI::SetSpec(const nsACString & aSpec)
  363. {
  364.     return NS_ERROR_NOT_IMPLEMENTED;
  365. }
  366.  
  367. /* readonly attribute AUTF8String prePath; */
  368. NS_IMETHODIMP nsURI::GetPrePath(nsACString & aPrePath)
  369. {
  370.     return NS_ERROR_NOT_IMPLEMENTED;
  371. }
  372.  
  373. /* attribute ACString scheme; */
  374. NS_IMETHODIMP nsURI::GetScheme(nsACString & aScheme)
  375. {
  376.     return NS_ERROR_NOT_IMPLEMENTED;
  377. }
  378. NS_IMETHODIMP nsURI::SetScheme(const nsACString & aScheme)
  379. {
  380.     return NS_ERROR_NOT_IMPLEMENTED;
  381. }
  382.  
  383. /* attribute AUTF8String userPass; */
  384. NS_IMETHODIMP nsURI::GetUserPass(nsACString & aUserPass)
  385. {
  386.     return NS_ERROR_NOT_IMPLEMENTED;
  387. }
  388. NS_IMETHODIMP nsURI::SetUserPass(const nsACString & aUserPass)
  389. {
  390.     return NS_ERROR_NOT_IMPLEMENTED;
  391. }
  392.  
  393. /* attribute AUTF8String username; */
  394. NS_IMETHODIMP nsURI::GetUsername(nsACString & aUsername)
  395. {
  396.     return NS_ERROR_NOT_IMPLEMENTED;
  397. }
  398. NS_IMETHODIMP nsURI::SetUsername(const nsACString & aUsername)
  399. {
  400.     return NS_ERROR_NOT_IMPLEMENTED;
  401. }
  402.  
  403. /* attribute AUTF8String password; */
  404. NS_IMETHODIMP nsURI::GetPassword(nsACString & aPassword)
  405. {
  406.     return NS_ERROR_NOT_IMPLEMENTED;
  407. }
  408. NS_IMETHODIMP nsURI::SetPassword(const nsACString & aPassword)
  409. {
  410.     return NS_ERROR_NOT_IMPLEMENTED;
  411. }
  412.  
  413. /* attribute AUTF8String hostPort; */
  414. NS_IMETHODIMP nsURI::GetHostPort(nsACString & aHostPort)
  415. {
  416.     return NS_ERROR_NOT_IMPLEMENTED;
  417. }
  418. NS_IMETHODIMP nsURI::SetHostPort(const nsACString & aHostPort)
  419. {
  420.     return NS_ERROR_NOT_IMPLEMENTED;
  421. }
  422.  
  423. /* attribute AUTF8String host; */
  424. NS_IMETHODIMP nsURI::GetHost(nsACString & aHost)
  425. {
  426.     return NS_ERROR_NOT_IMPLEMENTED;
  427. }
  428. NS_IMETHODIMP nsURI::SetHost(const nsACString & aHost)
  429. {
  430.     return NS_ERROR_NOT_IMPLEMENTED;
  431. }
  432.  
  433. /* attribute long port; */
  434. NS_IMETHODIMP nsURI::GetPort(PRInt32 *aPort)
  435. {
  436.     return NS_ERROR_NOT_IMPLEMENTED;
  437. }
  438. NS_IMETHODIMP nsURI::SetPort(PRInt32 aPort)
  439. {
  440.     return NS_ERROR_NOT_IMPLEMENTED;
  441. }
  442.  
  443. /* attribute AUTF8String path; */
  444. NS_IMETHODIMP nsURI::GetPath(nsACString & aPath)
  445. {
  446.     return NS_ERROR_NOT_IMPLEMENTED;
  447. }
  448. NS_IMETHODIMP nsURI::SetPath(const nsACString & aPath)
  449. {
  450.     return NS_ERROR_NOT_IMPLEMENTED;
  451. }
  452.  
  453. /* boolean equals (in nsIURI other); */
  454. NS_IMETHODIMP nsURI::Equals(nsIURI *other, PRBool *_retval)
  455. {
  456.     return NS_ERROR_NOT_IMPLEMENTED;
  457. }
  458.  
  459. /* boolean schemeIs (in string scheme); */
  460. NS_IMETHODIMP nsURI::SchemeIs(const char *scheme, PRBool *_retval)
  461. {
  462.     return NS_ERROR_NOT_IMPLEMENTED;
  463. }
  464.  
  465. /* nsIURI clone (); */
  466. NS_IMETHODIMP nsURI::Clone(nsIURI **_retval)
  467. {
  468.     return NS_ERROR_NOT_IMPLEMENTED;
  469. }
  470.  
  471. /* AUTF8String resolve (in AUTF8String relativePath); */
  472. NS_IMETHODIMP nsURI::Resolve(const nsACString & relativePath, nsACString & _retval)
  473. {
  474.     return NS_ERROR_NOT_IMPLEMENTED;
  475. }
  476.  
  477. /* readonly attribute ACString asciiSpec; */
  478. NS_IMETHODIMP nsURI::GetAsciiSpec(nsACString & aAsciiSpec)
  479. {
  480.     return NS_ERROR_NOT_IMPLEMENTED;
  481. }
  482.  
  483. /* readonly attribute ACString asciiHost; */
  484. NS_IMETHODIMP nsURI::GetAsciiHost(nsACString & aAsciiHost)
  485. {
  486.     return NS_ERROR_NOT_IMPLEMENTED;
  487. }
  488.  
  489. /* readonly attribute ACString originCharset; */
  490. NS_IMETHODIMP nsURI::GetOriginCharset(nsACString & aOriginCharset)
  491. {
  492.     return NS_ERROR_NOT_IMPLEMENTED;
  493. }
  494.  
  495. /* End of implementation class template. */
  496. #endif
  497.  
  498.  
  499. #endif /* __gen_nsIURI_h__ */
  500.